<html>

<head>
	<title>拍照</title>
	<meta http-equiv="Pragma" CONTENT="no-cache">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="renderer" content="webkit">
</head>
<script src="${cxt!}/sb/js/jquery-1.10.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="${cxt!}/sb/js/common/gpy.js" type="text/javascript" charset="utf-8"></script>

	<body  onload="loadActiveX();InitLoad();OpenDevice()">
	<div style="width:820px;height:530px;">
        <div style="width:500px; height: 350px; border: 1px solid black; background:#C7EDCC;  float:left">
        	<div  style=" width:100%; height:370px" id='ActiveXDivOne'></div>
            <div align="center" style=" width:100%; height:36px;">   
                <input type = "button" value = " 放大 " onclick = "ZoomIn();" style="height: 32px" />
                <input type = "button" value = " 缩小 " onclick = "ZoomOut();" style="height: 32px" />
                <input type = "button" value = " 适合大小 " onclick = "BestSize();" style="height: 32px" />
                <input type = "button" value = " 1：1 " onclick = "TrueSize();" style="height: 32px" />
                <input type = "button" value = " 对焦 " onclick = "ManualToFocus();" style="height: 32px" />
                <input style="height: 32px" id="Button5" type="button" value="设备属性" onclick = "ShowImageSettingWindow();"/>
            </div>	
        </div>

        <div style="width:270px;height:300px;background:#C7EDCC; border: 1px solid black;float:left">
             <img id="img1" alt="" src="" style="MARGIN-TOP:0px; width: 270px; height: 200px" />
            <table style="width:100%;  height: 32px;font-size:12px;">
                <tr>
                	<td >设 备 <select id="Device" name="D1" onchange = "ChangeDevice()"></select></td>
                	<td >分辨率<select style="width:120px"  id="Resolution" name="D2"onchange = "ChangeResolution()"></select></td>
                </tr>
               <!--  <tr>
                	<td >分辨率<select style="width:120px"  id="Resolution" name="D2"onchange = "ChangeResolution()"></select></td>
                </tr> -->
            </table>

            <table style="width:100%;  height: 32px;font-size:12px;">
                <tr>
                    <td >
                        <input style="width:40px;  height: 30px" id="Button1" type="button" value="打开" onclick = "OpenDevice();"/></td>
                    <td >
                        <input style="width:40px;  height: 30px" id="Button3" type="button" value="拍照" onclick = "Capture();"/></td>
                    <td >
                    <input style="width:40px;  height: 30px" id="Button2" type="button" value="关闭" onclick = "CloseDevice();"/></td>      
                </tr>

            </table>

            <table style="width:100%; height:43px;font-size:12px;">
                <tr>
                    <td > 格式
                        <select id = "FileType" onchange = "SetFileType()">
					        <option value="0">jpg</option>
                            <!-- <option value="1">bmp</option>
					        <option value="2">png</option>
					        <option value="3">tif</option>
                            <option value="4">gif</option>
                            <option value="5">pdf</option> -->
                        </select>
                    </td>

                    <td >颜色
                        <select id = "ColourMode" onchange = "SetImageColorMode()">
                            <option value="0">彩色</option>
					        <option value="1">灰度</option>
					        <option value="2">黑白</option>
                        </select>
                    </td>
                     <td > 旋 转
                        <select id = "Rotate" onchange = "SetCamRotate()">
                            <option value="0">0</option>
					        <option value="1">90</option>
					        <option value="2">180</option>
                            <option value="2">270</option>
                        </select>
                    </td>

                </tr>
               <!--  <tr>
                    <td > 旋 转
                        <select id = "Rotate" onchange = "SetCamRotate()">
                            <option value="0">0</option>
					        <option value="1">90</option>
					        <option value="2">180</option>
                            <option value="2">270</option>
                        </select>
                    </td>

                </tr> -->
            </table>

            <table style="width: 100%; height: 32px;font-size:12px;">
                <tr>
                    <td>
                        <input id="Radio1" checked="checked" name="R1" type="radio" value="V1" onclick="SetCutType()"/>不裁切
                    </td>
                    <td>
                        <input id="Radio2"  name="R1" type="radio" value="V2" onclick="SetCutType()"/>自动裁切
                    </td>
                    <td>
                        <input id="Radio3"  name="R1" type="radio" value="V3" onclick="SetCutType()"/>手动裁切
                    </td>
                </tr>
            </table>

            <!-- <table style="width: 100%; height: 32px">
                <tr>
                    <td>
                          <input style="width: 100%; height: 30px" id="Button4" type="button" value="Http上传" onclick = "HttpUploadFile();"/>
                    </td>
                </tr>
            </table> -->
           
            <textarea style="width: 270px; height: 57px" id="TextArea1" rows="20" cols="20" ></textarea>
        </div>                 
		</div>
	</body>

</html>